<div id="container"> <form method="POST" action="{{ url_for('resultsmovieaction') }}"> <center> <br>Watch Video of Raw Data<br> <select name="mp4_result_selected"> {% for m in mp4_datanames %} <option value="{{m}}">{{m}}</option> {% endfor %} </select> <br> <br> <input type="submit" value='Watch this Movie!'> </center> </form>
</div>
</body> {% endblock %}
You must be logged in to post. Please login or register an account.
There are many ways to do something like this. Generally, after choosing the movie, you'd have something with URL converters.
More info on url converters: https://pythonprogramming.net/flask-url-converters-tutorial/
An example from stackoverflow: http://stackoverflow.com/questions/12034949/flask-how-to-get-url-for-dynamically-generated-image-file
-Harrison 9 years ago
You must be logged in to post. Please login or register an account.
Thanks got it working. Only problem is that the images don't show up. I think the only media that is viewable is through the static folder. Is there a way to get another local folder to view the images?
-tonyphoang 9 years ago
You must be logged in to post. Please login or register an account.